package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "im_online_consultation")
public class OnlineConsultation implements Serializable {

	private static final long serialVersionUID = 4705507611510104611L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "oc_id_bigint", columnDefinition = "bigint(20)")
	private Long ocId;
	@Column(name = "oc_status_tinyint", columnDefinition = "tinyint(1) comment '待接诊=0,问诊中=1,正常结束=2,超时取消=3,'")
	private Integer ocStatus;
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String orderNo;
	@Column(name = "pid_bigint", columnDefinition = "bigint(20)")
	private Long pid;
	@Column(name = "dc_id_bigint", columnDefinition = "bigint(20)")
	private Long dcId;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "start_time_datetime", columnDefinition = "datetime(3)")
	private Date startTime;
	@Column(name = "end_time_datetime", columnDefinition = "datetime(3)")
	private Date endTime;
	@Column(name = "fact_finish_time_datetime", columnDefinition = "datetime(3)")
	private Date factFinishTime;
	@Column(name = "uid_bigint", columnDefinition = "bigint(20)")
	private Long uid;
	@Column(name = "a_type_int", columnDefinition = "int(11) comment '在线复诊=10,图文问诊=11,电话问诊=12,视频问诊=13'")
	private Integer aType;
	@Column(name = "last_time_int", columnDefinition = "int(11) comment '电话，视频问诊剩余秒数'")
	private Integer lastTime;
}
